package TestForOne;

/**
 * @author : zzr
 * @description :
 * @date :
 */

class Array<T> {
    public Object[] array = new Object[10];
    public T getArray(int pos) {
        return (T) array[pos];
    }
    public void setArray(int pos, Object val) {
        array[pos] = val;
    }
}
public class Test3 {
    public static void main(String[] args) {
        Array<String> array = new Array<>();
        array.setArray(0,"hello world");
        System.out.println(array.getArray(0));
    }
}
